home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Image;
- import javax.microedition.lcdui.List;
-
- class ColldemoSl45$MainMenu extends List implements CommandListener {
- public static final int VALID = 0;
- public static final int INVALID = 1;
- public static final int VALIDNOSET = 2;
- private Display display;
- private Displayable nextDisp;
- private int index;
- private int command;
- // $FF: renamed from: Id int
- private int field_0;
- // $FF: synthetic field
- private final ColldemoSl45 this$0;
-
- public ColldemoSl45$MainMenu(ColldemoSl45 var1, Display var2, Displayable var3) {
- super("Main Menu", 3);
- this.this$0 = var1;
- this.display = var2;
- this.nextDisp = var3;
- ((List)this).append("Start Game", (Image)null);
- ((List)this).append("Exit Game", (Image)null);
- ((List)this).append("Back", (Image)null);
- ((List)this).append("Help", (Image)null);
- this.index = -1;
- this.field_0 = 2;
- }
-
- public void showMe() {
- ((Displayable)this).setCommandListener(this);
- this.display.setCurrent(this);
- }
-
- public void commandAction(Command var1, Displayable var2) {
- int var3;
- if (this.field_0 != -1) {
- var3 = ColldemoSl45.access$000(this.this$0).validateAction(((List)this).getSelectedIndex(), this.field_0, (String)null);
- } else {
- var3 = 0;
- }
-
- if (var3 == 0) {
- this.display.setCurrent(this.nextDisp);
- }
-
- }
- }
-